import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('TransitionsPanel')
export default class TransitionsPanel extends Component {
    public static Instance: TransitionsPanel;
    @property(Node)
    public Node_move: Node | null = null;
    onLoad() {
        // TransitionsPanel.Instance = this;
    }
    ShowOn() {
        // this.node.active = true;
        // this.node.opacity = 0;
        // cc.tween(this.node).to(0.2, { opacity: 204 }).start();
        // this.AddListener();
        // this.Refresh();
    }
    ShowOff() {
        // cc.Tween.stopAllByTarget(this.node);
        // cc.tween(this.node).to(0.2, { opacity: 0 }).call(() => {
        // this.node.active = false;
        // }).start();
        // this.RemoveListener();
    }
    Refresh() {
        // let p = this.Node_move.position;
        // this.Node_move.setPosition(600, p.y);
        //        // let target_pos = cc.v3(p.x + 300, p.y, p.z);
        // cc.tween(this.Node_move)
        // .to(1, { x: -600 })
        // .call(() => {
        // this.ShowOff();
        // })
        // .start();
    }
    AddListener() {

    }
    RemoveListener() {

    }
}